import swRequest from './index'

//轮播图
export function getSwiper(){
  return swRequest.get('/banner',{
    type:1
  })
}
//推荐歌曲
export function getRankings(idx){
  return swRequest.get('/top/list',{
    idx
  })
}
//歌单
export function getMenuSong(cat="全部",limit=6, offset=0){
  return swRequest.get('/top/playlist',{
    cat,
    limit,
    offset
  })
}
export function getallSongsMenu(id){
  return swRequest.get("/playlist/detail/dynamic", {
    id
  })
}